<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="/WEB-INF/tags/mooral-html.tld" prefix="mooralHtml" %>

<html:xhtml/>

<div id="paginator">
	<span id="#top" class="pagination">
		<mooralHtml:pagination positionAnchor="#top"/>
	</span>
</div>

<table cellpadding="0" cellspacing="0" class="voucher_list">
<% boolean row = false; 
   String classTR = "datopar";%>
<logic:iterate id="voucher" name="vouchers">
	<% row = !row; 
		
	if(row)
		classTR = "datoimpar";
	else 
		classTR = "datopar";%>		
		
	<tr class="<%=classTR%>">
		<td>
			<img src="<bean:write name="voucher" property="image"/>" />
		</td>
		<td>
			<a href="/<bean:write name="mooralContext" property="applicationName"/>/voucher/<bean:write name="voucher" property="slug"/>"><bean:write name="voucher" property="title"/></a>
		</td>
	</tr>	
</logic:iterate>
</table>

<div id="paginator">
	<span id="bottom" class="pagination">
		<mooralHtml:pagination/>
	</span>
</div>